package com.bdqn.service;

import com.bdqn.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.entity.ShoppingCart;
import com.bdqn.param.requset.OrderParam;
import com.bdqn.param.response.OrdersDto;
import com.bdqn.param.response.Page;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author hunter
 * @since 2022-06-11
 */
public interface OrdersService extends IService<Orders> {

    Page<Orders> pageInfo(Integer page, Integer pageSize, OrderParam orderParam);
    //添加订单的操作  主订单-->子订单 -->购物车
    int addOrder(Orders orders, List<ShoppingCart> shoppingCarts, HttpSession session);

    Page<OrdersDto> userPageInfo(Integer page, Integer pageSize, int sumNum);
}
